package demo;

import com.tedu.InputField;

public class UserInfo {
    @InputField(title = "姓名",notNull = true)
    private String name;
    @InputField(title = "年龄",notNull = true)
    private int age;
    @InputField(title = "密码",notNull = true)
    private String password;
    @InputField(title = "昵称",notNull = true)
    private String nickName;

    @Override
    public String toString() {
        return "UserInfo{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", password='" + password + '\'' +
                ", nickName='" + nickName + '\'' +
                '}';
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
